package com.example.a79273.shandianban.application;

import android.app.Application;

import org.xutils.x;

/**
 * Created by 79273 on 2016/8/29.
 */
public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        x.Ext.init(this);

    }

    @Override
    public void onTerminate() {
        super.onTerminate();
    }


    /*处理不规范的字符串的方法*/
    public static String dealWithString(String result) {
        int startIndex = result.indexOf("{");
        int endIndex = result.lastIndexOf("}");
        return result.substring(startIndex, endIndex + 1);
    }
}
